package com.example.user.myzzyl_android;

import java.util.List;

/**
 * Created by User on 2017/7/21.
 */

public class JsonText2 {

    /**
     * success : true
     * msg : success
     * data : {"content":[{"id":"402881f75b140a4e015b14262d3d0011","createdDate":1490691697000,"modifiedDate":1490695164000,"createdBy":"system","modifiedBy":"system","version":1,"enabled":true,"tp":"upload-files/images/2017/03/28/402881f75b14121b015b14260963000d.jpg","mc":"爱上噶说个事","js":"<p>上的放松的方式电风扇的风[哈哈]<\/p><p><br><\/p>","sx":null,"lx":0,"hot":1},{"id":"402881f75b140a4e015b1452f2070026","createdDate":1490694631000,"modifiedDate":1490695055000,"createdBy":"system","modifiedBy":"system","version":1,"enabled":true,"tp":"upload-files/images/2017/03/28/402881f75b14121b015b1452dc820013.jpg","mc":"12312312","js":"<p>士大夫嘎山道嘎说的<\/p>","sx":null,"lx":0,"hot":1}],"last":true,"totalPages":1,"totalElements":2,"number":0,"size":10,"sort":[{"direction":"DESC","property":"modifiedDate","ignoreCase":false,"nullHandling":"NATIVE","ascending":false}],"first":true,"numberOfElements":2}
     */

    private boolean success;
    private String msg;
    private DataBean data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "JsonText2{" +
                "success=" + success +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }

    public static class DataBean {
        /**
         * content : [{"id":"402881f75b140a4e015b14262d3d0011","createdDate":1490691697000,"modifiedDate":1490695164000,"createdBy":"system","modifiedBy":"system","version":1,"enabled":true,"tp":"upload-files/images/2017/03/28/402881f75b14121b015b14260963000d.jpg","mc":"爱上噶说个事","js":"<p>上的放松的方式电风扇的风[哈哈]<\/p><p><br><\/p>","sx":null,"lx":0,"hot":1},{"id":"402881f75b140a4e015b1452f2070026","createdDate":1490694631000,"modifiedDate":1490695055000,"createdBy":"system","modifiedBy":"system","version":1,"enabled":true,"tp":"upload-files/images/2017/03/28/402881f75b14121b015b1452dc820013.jpg","mc":"12312312","js":"<p>士大夫嘎山道嘎说的<\/p>","sx":null,"lx":0,"hot":1}]
         * last : true
         * totalPages : 1
         * totalElements : 2
         * number : 0
         * size : 10
         * sort : [{"direction":"DESC","property":"modifiedDate","ignoreCase":false,"nullHandling":"NATIVE","ascending":false}]
         * first : true
         * numberOfElements : 2
         */

        private boolean last;
        private int totalPages;
        private int totalElements;
        private int number;
        private int size;
        private boolean first;
        private int numberOfElements;
        private List<ContentBean> content;
        private List<SortBean> sort;

        public boolean isLast() {
            return last;
        }

        public void setLast(boolean last) {
            this.last = last;
        }

        public int getTotalPages() {
            return totalPages;
        }

        public void setTotalPages(int totalPages) {
            this.totalPages = totalPages;
        }

        public int getTotalElements() {
            return totalElements;
        }

        public void setTotalElements(int totalElements) {
            this.totalElements = totalElements;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public boolean isFirst() {
            return first;
        }

        public void setFirst(boolean first) {
            this.first = first;
        }

        public int getNumberOfElements() {
            return numberOfElements;
        }

        public void setNumberOfElements(int numberOfElements) {
            this.numberOfElements = numberOfElements;
        }

        public List<ContentBean> getContent() {
            return content;
        }

        public void setContent(List<ContentBean> content) {
            this.content = content;
        }

        public List<SortBean> getSort() {
            return sort;
        }

        public void setSort(List<SortBean> sort) {
            this.sort = sort;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "last=" + last +
                    ", totalPages=" + totalPages +
                    ", totalElements=" + totalElements +
                    ", number=" + number +
                    ", size=" + size +
                    ", first=" + first +
                    ", numberOfElements=" + numberOfElements +
                    ", content=" + content +
                    ", sort=" + sort +
                    '}';
        }

        public static class ContentBean {
            /**
             * id : 402881f75b140a4e015b14262d3d0011
             * createdDate : 1490691697000
             * modifiedDate : 1490695164000
             * createdBy : system
             * modifiedBy : system
             * version : 1
             * enabled : true
             * tp : upload-files/images/2017/03/28/402881f75b14121b015b14260963000d.jpg
             * mc : 爱上噶说个事
             * js : <p>上的放松的方式电风扇的风[哈哈]</p><p><br></p>
             * sx : null
             * lx : 0
             * hot : 1
             */

            private String id;
            private long createdDate;
            private long modifiedDate;
            private String createdBy;
            private String modifiedBy;
            private int version;
            private boolean enabled;
            private String tp;
            private String mc;
            private String js;
            private Object sx;
            private int lx;
            private int hot;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public long getCreatedDate() {
                return createdDate;
            }

            public void setCreatedDate(long createdDate) {
                this.createdDate = createdDate;
            }

            public long getModifiedDate() {
                return modifiedDate;
            }

            public void setModifiedDate(long modifiedDate) {
                this.modifiedDate = modifiedDate;
            }

            public String getCreatedBy() {
                return createdBy;
            }

            public void setCreatedBy(String createdBy) {
                this.createdBy = createdBy;
            }

            public String getModifiedBy() {
                return modifiedBy;
            }

            public void setModifiedBy(String modifiedBy) {
                this.modifiedBy = modifiedBy;
            }

            public int getVersion() {
                return version;
            }

            public void setVersion(int version) {
                this.version = version;
            }

            public boolean isEnabled() {
                return enabled;
            }

            public void setEnabled(boolean enabled) {
                this.enabled = enabled;
            }

            public String getTp() {
                return tp;
            }

            public void setTp(String tp) {
                this.tp = tp;
            }

            public String getMc() {
                return mc;
            }

            public void setMc(String mc) {
                this.mc = mc;
            }

            public String getJs() {
                return js;
            }

            public void setJs(String js) {
                this.js = js;
            }

            public Object getSx() {
                return sx;
            }

            public void setSx(Object sx) {
                this.sx = sx;
            }

            public int getLx() {
                return lx;
            }

            public void setLx(int lx) {
                this.lx = lx;
            }

            public int getHot() {
                return hot;
            }

            public void setHot(int hot) {
                this.hot = hot;
            }

            @Override
            public String toString() {
                return "ContentBean{" +
                        "id='" + id + '\'' +
                        ", createdDate=" + createdDate +
                        ", modifiedDate=" + modifiedDate +
                        ", createdBy='" + createdBy + '\'' +
                        ", modifiedBy='" + modifiedBy + '\'' +
                        ", version=" + version +
                        ", enabled=" + enabled +
                        ", tp='" + tp + '\'' +
                        ", mc='" + mc + '\'' +
                        ", js='" + js + '\'' +
                        ", sx=" + sx +
                        ", lx=" + lx +
                        ", hot=" + hot +
                        '}';
            }
        }

        public static class SortBean {
            /**
             * direction : DESC
             * property : modifiedDate
             * ignoreCase : false
             * nullHandling : NATIVE
             * ascending : false
             */

            private String direction;
            private String property;
            private boolean ignoreCase;
            private String nullHandling;
            private boolean ascending;

            public String getDirection() {
                return direction;
            }

            public void setDirection(String direction) {
                this.direction = direction;
            }

            public String getProperty() {
                return property;
            }

            public void setProperty(String property) {
                this.property = property;
            }

            public boolean isIgnoreCase() {
                return ignoreCase;
            }

            public void setIgnoreCase(boolean ignoreCase) {
                this.ignoreCase = ignoreCase;
            }

            public String getNullHandling() {
                return nullHandling;
            }

            public void setNullHandling(String nullHandling) {
                this.nullHandling = nullHandling;
            }

            public boolean isAscending() {
                return ascending;
            }

            public void setAscending(boolean ascending) {
                this.ascending = ascending;
            }

            @Override
            public String toString() {
                return "SortBean{" +
                        "direction='" + direction + '\'' +
                        ", property='" + property + '\'' +
                        ", ignoreCase=" + ignoreCase +
                        ", nullHandling='" + nullHandling + '\'' +
                        ", ascending=" + ascending +
                        '}';
            }
        }
    }
}
